package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RecordEnclosuMapper;
import com.ruoyi.system.domain.RecordEnclosu;
import com.ruoyi.system.service.IRecordEnclosuService;

/**
 * 公告上报附件
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-08-20
 */
@Service
public class RecordEnclosuServiceImpl implements IRecordEnclosuService 
{
    @Autowired
    private RecordEnclosuMapper recordEnclosuMapper;

    /**
     * 查询公告上报附件

     * 
     * @param id 公告上报附件
ID
     * @return 公告上报附件

     */
    @Override
    public RecordEnclosu selectRecordEnclosuById(Long id)
    {
        return recordEnclosuMapper.selectRecordEnclosuById(id);
    }

    /**
     * 查询公告上报附件
列表
     * 
     * @param recordEnclosu 公告上报附件

     * @return 公告上报附件

     */
    @Override
    public List<RecordEnclosu> selectRecordEnclosuList(RecordEnclosu recordEnclosu)
    {
        return recordEnclosuMapper.selectRecordEnclosuList(recordEnclosu);
    }

    /**
     * 新增公告上报附件

     * 
     * @param recordEnclosu 公告上报附件

     * @return 结果
     */
    @Override
    public int insertRecordEnclosu(RecordEnclosu recordEnclosu)
    {
        return recordEnclosuMapper.insertRecordEnclosu(recordEnclosu);
    }

    /**
     * 修改公告上报附件

     * 
     * @param recordEnclosu 公告上报附件

     * @return 结果
     */
    @Override
    public int updateRecordEnclosu(RecordEnclosu recordEnclosu)
    {
        return recordEnclosuMapper.updateRecordEnclosu(recordEnclosu);
    }

    /**
     * 批量删除公告上报附件

     * 
     * @param ids 需要删除的公告上报附件
ID
     * @return 结果
     */
    @Override
    public int deleteRecordEnclosuByIds(Long[] ids)
    {
        return recordEnclosuMapper.deleteRecordEnclosuByIds(ids);
    }

    /**
     * 删除公告上报附件
信息
     * 
     * @param id 公告上报附件
ID
     * @return 结果
     */
    @Override
    public int deleteRecordEnclosuById(Long id)
    {
        return recordEnclosuMapper.deleteRecordEnclosuById(id);
    }
}
